<?php
    /**
     * Created by PhpStorm.
     * User: Feixiang
     * Date: 2017/8/8
     * Time: 10:45
     */
    
    namespace Common\Model;
    
    use Think\Model;
    use Think\Model\RelationModel;
  
    
    class MenuModel extends Model
    {
//    查找其中的数据表
   /*     private $_db = '';
        
        public function __construct()
        {
            $this->_db = M('menu');
        }
        */
        
        public function insert($data = [])
        {
            if (!$data || !is_array($data)) {
                return 0;
            }
            
            return $this->add($data);
        }
    }
    
    